package com.hz.userService;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.jms.Queue;

/**
 * @author King
 * @version 1.0
 * @createDate 2023-09-14 15:24
 * @projectName spring-boot-mybatis
 * @className ActiveMQConfig
 * @description ActiveMQ 配置类
 */
@Configuration
public class ActiveMQConfig {
    @Bean
    public Queue queue() {
        // 返回创建队列
        return new ActiveMQQueue("queue");
    }
}
